<!--个人设备通断记录组件-->
<div style="width: 100%; height: auto">
  <nz-table #onOffTable
            [nzData]="personalOnOfRecordList"
            [nzShowPagination]="false"
            [nzBordered]="true">
    <thead>
    <tr>
      <th>序号</th>
      <th>操作</th>
      <th>时间</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of onOffTable.data; let i = index">
      <td>{{ i + 1}}</td>
      <td>
        <span *ngIf="data.event === 1" style="color: #3FACFE">开机</span>
        <span *ngIf="data.event === 0" style="color: red">关机</span>
      </td>
      <td>{{ data.time }}</td>
    </tr>
    </tbody>
  </nz-table>
</div>
